<%-- 
    Document   : auto
    Created on : 16/Out/2008, 12:08:25
    Author     : suporte
--%>

<%@page contentType="text/html" pageEncoding="windows-1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="br.uefs.cedoc.util.ConfigWeb"%>
<html>
    <head>
        <style>
    div.autocomplete {
        position:absolute;
        width:250px;
        background-color:white;
        margin:0px;
        padding:0px;
        overflow:hidden;
    }
    div.autocomplete ul {
        list-style-type:none;
        margin:0px;
        padding:0px;
        overflow:auto;
    }
    div.autocomplete ul li.selected { background-color: #ffb;}
    div.autocomplete ul li {
        list-style-type:none;
        display:block;
        margin:0;
        padding:2px;
        height:32px;
        cursor:pointer;
    }
</style>

        <script src="<%=ConfigWeb.BASE_PATH%>/javascript/prototype.js" type="text/javascript"></script>
<script src="<%=ConfigWeb.BASE_PATH%>/javascript/scriptaculous.js?load=effects,controls" type="text/javascript"></script>
<script type="text/javascript">
  window.onload = function() {
     new Ajax.Autocompleter("autocomplete", "autocomplete_choices", "<%=ConfigWeb.BASE_PATH%>/StatesServlet", {});
  }
</script>

        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>JSP Page</title>
    </head>
    <body>
        <h2>Hello World!</h2>
        <input type="text" id="autocomplete" name="autocomplete_parameter"/><div id="autocomplete_choices" class="autocomplete"></div>

    </body>
</html>
